﻿using Model.Dto;
using System.Collections.Generic;

namespace GridView
{
    public partial class DefCechbox : DevExpress.XtraEditors.XtraForm
    {
        List<StudentDto> students = new List<StudentDto>() {
            new StudentDto() { Id = 1, Name = "小明", Chk = false },
            new StudentDto(){ Id = 2, Name = "小王", Chk=false }
        };

        public DefCechbox()
        {
            InitializeComponent();
            gridView1.OptionsSelection.MultiSelect = true;
            gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
            gridControl1.DataSource = students;
        }
    }
}
